package com.javalearn;

public class Monitor {
	public void synTest() {
		synchronized(this) {
			System.out.println("hello...");
		}
	}
	public static void main(String[] args) {
		Monitor m = new Monitor();
		m.synTest();
	}
}
